package com.zhilianbao.leyaogo.ui.activity.me.myorder;

import android.content.Intent;
import android.os.Bundle;

import com.bql.fragmentation.anim.DefaultHorizontalAnimator;
import com.bql.fragmentation.anim.FragmentAnimator;
import com.zhilianbao.leyaogo.R;
import com.zhilianbao.leyaogo.ui.activity.base.BaseOkHttpActivity;
import com.zhilianbao.leyaogo.ui.fragment.me.myorder.OrderDetailFragment;

/**
 * Created by liu on 2016/10/25.
 * 订单详情
 */
public class OrderDetailActivity extends BaseOkHttpActivity {
    @Override
    protected int getContentViewLayoutID() {
        return R.layout.fragment_container;
    }

    @Override
    protected void initViewsAndEvents(Bundle savedInstanceState) {
        Intent intent = getIntent();
        long userId = intent.getLongExtra("userId", 0);
        long orderId = intent.getLongExtra("orderId", 0);
        int position = intent.getIntExtra("position", 0);
        if (savedInstanceState == null) {
            loadRootFragment(R.id.fl_container, OrderDetailFragment.getInstance(userId,orderId,position));
        }
    }

    @Override
    protected FragmentAnimator onCreateFragmentAnimator() {
        return new DefaultHorizontalAnimator();
    }


}